#include "Light.h"

std::map<LightState, LightState> lightTransitions = {
    {LightState::Off, LightState::Low},
    {LightState::Low, LightState::Medium},
    {LightState::Medium, LightState::High},
    {LightState::High, LightState::Off}
};

Light::Light() {
    currentState = LightState::Off;
}

void Light::toggle() {
    currentState = lightTransitions[currentState];
}
